-
Notifications
You must be signed in to change notification settings - Fork 3
Refactor ABSmartly configuration setup to allow for all the configuration to be specified through the ABSmartlyConfig object #27
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Refactor ABSmartly configuration setup to allow for all the configuration to be specified through the ABSmartlyConfig object #27
Conversation
a0fb82c to
b8759bf
Compare
a5317f7 to
ba89c02
Compare
|
Hey @dhruvCW , can you change the file lib/absmartly/version.rb with the version number 1.2 please? |
|
@dhruvCW , see if is possible to add this PR https://github.com/absmartly/ruby-sdk/pull/28/files together with this version, please? |
Done cherry picked the changes onto this branch and updated the version file as well 👍 |
* Remove unused lib/absmartly/variant_assigner * Support create context with given context data. * Config refactor * Add ruby version matrix to the CI * remove bigdecimal as a dependency * Fix relative path in DefaultContextEventHandler. * Fix class inheritance in DefaultContextEventHandler. * Update version * fix: merge context attributes when setting them (absmartly#29) * revert: undo config refactor from PR absmartly#27 (fixes deadlock) (absmartly#31) * fix: address coderabbit comments (absmartly#32) * fix: allow http client configuration from configure_client (absmartly#33) * feat: add global cutom event logger (absmartly#34) --------- Co-authored-by: hermeswaldemarin <hermes@absmartly.com> Co-authored-by: Márcio Martins <77632139+marcio-absmartly@users.noreply.github.com> Co-authored-by: Hermes Waldemarin Neto <hermes.waldemarin@gmail.com> Co-authored-by: Dhruv Paranjape <d.paranjape@catawiki.nl> Co-authored-by: yektt <r.yekt.93@gmail.com> Co-authored-by: Cal Courtney <calthejuggler@gmail.com> Co-authored-by: Cal Courtney <cal@absmartly.com>
Description
ABSmartlyConfigobject. The instance now contains a copy of theClientConfigand intern theDefaultHttpConfigwhich allows for all the configuration to be setup via theABsmartly.configure_clientmethod.ABsmartlythread safe.context_event_loggercan now be directly configured with a proc or lambda which will automatically wrap it inContextEventLoggerCallbackinstance.Note
All changes should ideally be backwards compatible but have only been verified using the existing test suite.
Test
ABSmartly.createto use another one.